package org.yzh.web.model.po;

import io.github.yezhihao.netmc.session.Session;
import io.github.yezhihao.protostar.DataType;
import io.github.yezhihao.protostar.annotation.Convert;
import io.netty.buffer.ByteBuf;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.yzh.protocol.commons.transform.AttributeConverter;

import java.util.Map;

@Document("jt-location")
public class MongoT0200PO {
    @Indexed
    @Field("clientId")
    private String clientId;
    @Field("warnBit")
    private int warnBit;
    @Field("statusBit")
    private int statusBit;
    @Field("latitude")
    private int latitude;
    @Field("longitude")
    private int longitude;
    @Field("altitude")
    private int altitude;
    @Field("speed")
    private int speed;
    @Field("direction")
    private int direction;
    @Field("dateTime")
    private String dateTime;
    @Field("attributes")
    private Map<Integer, Object> attributes;
    @Field("messageId")
    private int messageId;
    @Field("properties")
    private int properties;
    @Field("versionNo")
    private int versionNo;
    @Field("serialNo")
    private int serialNo;
    @Field("packageTotal")
    private Integer packageTotal;
    @Field("packageNo")
    private Integer packageNo;
    @Field("verified")
    private boolean verified = true;
    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public int getWarnBit() {
        return warnBit;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public int getProperties() {
        return properties;
    }

    public void setProperties(int properties) {
        this.properties = properties;
    }

    public int getVersionNo() {
        return versionNo;
    }

    public void setVersionNo(int versionNo) {
        this.versionNo = versionNo;
    }

    public int getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(int serialNo) {
        this.serialNo = serialNo;
    }

    public Integer getPackageTotal() {
        return packageTotal;
    }

    public void setPackageTotal(Integer packageTotal) {
        this.packageTotal = packageTotal;
    }

    public Integer getPackageNo() {
        return packageNo;
    }

    public void setPackageNo(Integer packageNo) {
        this.packageNo = packageNo;
    }

    public boolean isVerified() {
        return verified;
    }

    public void setVerified(boolean verified) {
        this.verified = verified;
    }

    public void setWarnBit(int warnBit) {
        this.warnBit = warnBit;
    }

    public int getStatusBit() {
        return statusBit;
    }

    public void setStatusBit(int statusBit) {
        this.statusBit = statusBit;
    }

    public int getLatitude() {
        return latitude;
    }

    public void setLatitude(int latitude) {
        this.latitude = latitude;
    }

    public int getLongitude() {
        return longitude;
    }

    public void setLongitude(int longitude) {
        this.longitude = longitude;
    }

    public int getAltitude() {
        return altitude;
    }

    public void setAltitude(int altitude) {
        this.altitude = altitude;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public Map<Integer, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<Integer, Object> attributes) {
        this.attributes = attributes;
    }
}
